package com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node;

import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node.dto.HrApprovalNodeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node.param.HrApprovalNodeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node.param.HrApprovalNodeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node.param.HrApprovalNodeQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.hr.approval.node.param.HrApprovalNodeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * HrApprovalNodeCloudServiceFallback
 *
 * @author  liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/hr/approval/node/fallback")
public class HrApprovalNodeCloudServiceFallback implements HrApprovalNodeCloudService {

    @Override
    public HrApprovalNodeListCloudDto query(HrApprovalNodeQueryCloudParam param) {
        return new HrApprovalNodeListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(HrApprovalNodeCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(HrApprovalNodeUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(HrApprovalNodeDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
